package com.saint.commons.controller;

import com.saint.commons.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ActivityController {

    @Autowired
    private ActivityService activityService;

    /**
     * http://localhost:9061/activity/commit
     */
    @RequestMapping("/activity/commit")
    public String commit(@RequestParam("type") String type) {
        activityService.commit(type);
        return "true";
    }

}
